<?php 

$arr = array (1, 2, 3, 4, 5);

$arr2 = array (4, 3, 5);
var_dump(array_intersect($arr, $arr2));